<?php
	$relativeToRoot = $_SERVER['REQUEST_URI'];
	$domain = "http://".$_SERVER['HTTP_HOST'].$relativeToRoot;
	$iLastOccurenceOfSlash = strripos($domain,'/') + 1;
	$root = substr($domain,0,$iLastOccurenceOfSlash);
	
	$lastPage = $_SERVER['HTTP_REFERER'];
?>
<!DOCTYPE html> 
<html>
<head>
  <title>GerTradix</title>
  <meta name="description" content="Home - GerTradix &uuml;bersetzt einfache lateinische S&auml;tze ins Deutsche - GerTradix war urspr&uuml;nglich ein Forschungsprojekt zum Einbezug des WWWs in automatische Entscheidungen.">
  <meta content="Beni Bichsel" name="author">
  <meta name="keywords" content="GerTradix, gertradix, Home, &Uuml;bersetzung, Latein, Deutsch">
  <link type="text/css" href="style.css" rel="stylesheet">
  <meta charset="utf-8">
  <link rel="shortcut icon" href="favicon.ico" />
  <script type="text/javascript" src="referrer.js"></script>
</head>
<body>
  <div id="zentriertHome">
    <img title="GerTradix" src="pictures/gertradix-logo_index.png" /> 
    <div id="inhalt">
      <form action="index.php">
        <input type="hidden" value="results" name="key" /><input type="text" name="text" /><input type="submit" id="Uebersetze" value="" />
      </form>
    </div>
    <div id="linksHome">
      <a href="<?php echo($root); ?>">Home</a> | <a href="index.php?key=kontakt">Kontakt</a> | <a href="index.php?key=projekt">Das Projekt</a>
      <div id="name">
	    &copy; 2010-2011 GerTradix - Beni Bichsel | <iframe id="facebookLikeBox" src="http://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2F%23%21%2Fpages%2FGerTradix%2F103915683026860&amp;layout=button_count&amp;show_faces=false&amp;width=120&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:120px; height:21px;" allowTransparency="true"></iframe>
      </div>
	</div>
  </div>
  <script type="text/javascript" src="google-analytics.js"></script>
</body>
</html>